function HandleTableRowLastUpdatedProduce(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  this._popupBox = new PopupBox();
  this._popupBox2 = new PopupBox2();
  
  this._user = (options && options.user) ? options.user : null;
  this._menu = (options && options.menu) ? options.menu : null;
  this._callbackFunc = (options && options.callback) ? options.callback : null;

  this._createElements();
};

HandleTableRowLastUpdatedProduce.prototype._createElements = function() {
  var a, _self = this;

  if (this._item.isCustom == 0) {
    if (this._user.type == Constant.USER_TYPE_ACCOUNTANT) {
      this._gui.customer.appendChild(document.createTextNode((this._item.customerId) ? (DlmanageUtils.customerId(this._item.customerId) + this._item.orderFlag) : ''));
    } else {
      a = document.createElement('a');
      a.appendChild(document.createTextNode((this._item.customerId) ? (DlmanageUtils.customerId(this._item.customerId) + this._item.orderFlag) : ''));
      if (this._user.type == Constant.USER_TYPE_MANAGER_ASSISTANT) {
        a.href = '?p=pageasst&t=pagecustomerold&m=' + JSON.stringify({ a: 2, b: 1 }) + '&opts=' + JSON.stringify({ id: this._item.customerId, track: this._item.orderTrackId });
      } else if (this._user.type == Constant.USER_TYPE_CUSTOMER_SERVICE) {
        a.href = '?p=pageserv&t=pagecustomerold&m=' + JSON.stringify({ a: 2, b: 1 }) + '&opts=' + JSON.stringify({ id: this._item.customerId, track: this._item.orderTrackId });
      } else {
        a.href = '?p=pagemanager&t=pagecustomerold&m=' + JSON.stringify({ a: 2, b: 1 }) + '&opts=' + JSON.stringify({ id: this._item.customerId, track: this._item.orderTrackId });
      }
      this._gui.customer.appendChild((this._item.customerId != 0) ? a : document.createTextNode('Parcel'));
    }
    if (this._item.customerId == 0) {
      this._gui.customer.style.fontWeight = 'bold';
    }
    
  } else {
    this._gui.customer.style.color = '#333';
    this._gui.customer.style.fontSize = '8pt';
    this._gui.customer.appendChild(document.createTextNode((this._item.customerId != 0) ? DlmanageUtils.customerId(this._item.customerId) + this._item.orderFlag : '-'));
  }
  if (this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_VIDEODVD|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_4X6|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_RETOUCH|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_RETOUCH_MAGAZINE|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_COMMON|escape:javascript}}') {
    var span = document.createElement('span');
    span.style.fontWeight = 'bold';
    span.style.fontSize = '10px';
    span.appendChild(document.createTextNode(this._item.pi_quantity + 'X' ));
    this._gui.name.appendChild(span);
  }
  this._gui.name.appendChild(document.createTextNode(this._item.title));
  if (this._item.pi_model == Constant.MODEL_NAME_USER_PHOTOGRAPHER) {
    if (this._item.pi_selects.length == 1) {
      if (this._item.pi_selects[0].value != '0' && this._item.pi_selects[0].value != '') {
        this._gui.name.appendChild(document.createTextNode(' + ' + this._item.pi_selects[0].value + ' ' + this._item.pi_selects[0].title + 's'));
      }
    }
  }

  if (this._item.pi_selects.length > 0 && (this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_VIDEODVD|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_4X6|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_RETOUCH|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_RETOUCH_MAGAZINE|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRODUCT_COMMON|escape:javascript}}' ||
      this._item.pi_model == '{{$smarty.const.MODEL_NAME_ALBUM_DESIGN|escape:javascript}}')) {
    a = document.createElement('a');
    a.href = '#';
    a.style.fontSize = '10px';
    a.appendChild(document.createTextNode('Info'));
    a.onclick = function() { var func1 = function() { _self._popupBox2._close(); };
                             var div = document.createElement('div');
                             MiscUtils.dialog(_self._popupBox2, DOMUtils.findPos(this), div, func1, null, {t: _self._item.pi_name, width: 515, height: 100});
                             new DialogDetails(div, _self._item, { orderId: _self._item.orderId, hidePrice: _self._options.hidePrice });
                             return false;
                           };
    this._gui.name.appendChild(a);
  } else if (this._item.pi_model == Constant.MODEL_NAME_MAIL && this._item.state != 1) {
    a = document.createElement('a');
    a.style.margin = '0 0 0 5px';
    a.style.fontSize = '10px';
    if (this._user.type == Constant.USER_TYPE_MANAGER_ASSISTANT) {
      a.href = '?p=pageasst&t=pagehistorymailinformation&m=' + JSON.stringify({ a: 1, b: 1, c: 1 }) + '&opts=' + JSON.stringify({ p: _self._item.produceId });
    } else if (this._user.type == Constant.USER_TYPE_CUSTOMER_SERVICE) {
      a.href = '?p=pageserv&t=pagehistorymailinformation&m=' + JSON.stringify({ a: 1, b: 1, c: 1 }) + '&opts=' + JSON.stringify({ p: _self._item.produceId });
    } else {
      a.href = '?p=pagemanager&t=pagehistorymailinformation&m=' + JSON.stringify({ a: 1, b: 1, c: 1 }) + '&opts=' + JSON.stringify({ p: _self._item.produceId });
    }
    a.appendChild(document.createTextNode('Review'));
    this._gui.name.appendChild(a);
  }
  
  if (this._item.pi_model == '{{$smarty.const.MODEL_NAME_PRECON|escape:javascript}}') {
    var str = '';
    for (var i = 0, il = this._item.pUsers.length; i < il; i++) {
      var u = this._item.pUsers[i];
      if (u == '') {
        continue;
      }
      str += u;
      if (i < this._item.pUsers.length - 1) {
        str += ', ';
      }
    }
    this._gui.user.appendChild(document.createTextNode(str));
  } else {
    this._gui.user.appendChild(document.createTextNode(this._item.user_account));
  }
  var str = DlmanageUtils.text(Manage.map(), this._item.pi_model, this._item.sourceId, this._item.targetId, '');
  if (str != '') {
    this._gui.task.appendChild(document.createTextNode(str));
  } else {
    this._gui.task.appendChild(document.createTextNode(this._item.extra + ((this._item.extra && this._item.overdueReason) ? ' / ' : '') + ((this._item.overdueReason) ? 'Overdue Reason: ' + this._item.overdueReason : '')));
  }

  this._gui.updatedDate.appendChild(document.createTextNode(SimpleDate.format(this._item.date)));
  this._gui.operator.appendChild(document.createTextNode(this._item.userAccount));
  
};